package zonda.okhttp3post;

import android.os.Parcel;

public class BaseResult implements android.os.Parcelable {

  private String stat;

  private String msg;

  public String getStat() {
    return stat;
  }

  public void setStat(String stat) {
    this.stat = stat;
  }

  public String getMsg() {
    return msg;
  }

  public void setMsg(String msg) {
    this.msg = msg;
  }


  @Override
  public int describeContents() {
    return 0;
  }

  @Override
  public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.stat);
    dest.writeString(this.msg);
  }

  public BaseResult() {
  }

  protected BaseResult(Parcel in) {
    this.stat = in.readString();
    this.msg = in.readString();
  }

  public static final Creator<BaseResult> CREATOR = new Creator<BaseResult>() {
    @Override
    public BaseResult createFromParcel(Parcel source) {
      return new BaseResult(source);
    }

    @Override
    public BaseResult[] newArray(int size) {
      return new BaseResult[size];
    }
  };
}
